var arg =  process.argv.splice(2);

function getValue(str) {
	
			var hash = 5381;
	for ( var i = 0, len = str.length; i < len; ++i)
		hash += (hash << 5) + str.charAt(i).charCodeAt();
	return hash & 2147483647;
}

console.log(getValue(arg[0]));